<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page session="false" %>
<html>
<head>
	<title>Home</title>
</head>
<body>
<div align="center">
		<h1>Contact List</h1>
		<h2><a href="new">Create New User</a></h2>
		<table border="1">
			<tr>
			<th>No</th>
			<th>Username</th>
			<th>Password</th>
			<th>Email</th>
			<th>Edit</th>
			<th>Delete</th>
			</tr>
			<c:forEach var="user" items="${userList}" varStatus="status">
			<tr>
				<td>${user.idUser}</td>
				<td>${user.username}</td>
				<td>${user.password}</td>
				<td>${user.email}</td>
				<td><a href="edit?id=${user.idUser}">Edit</a></td>
				<td><a href="delete?id=${user.idUser}">Delete</a></td>
			</tr>
			</c:forEach>
		
		</table>
</div>

</body>
</html>
